package com.zmx.common.common.security;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @Description: 客户端资源配置
 * @ClassName: WebSecurityConfig
 * @Author zhaomxr
 * @Date 2021-11-09 15:52
 */
@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring().antMatchers("/assets/**", "/css/**", "/js/**", "/images/**",
                "/info", "/health", "/hystrix.stream", "/open/**", "/api/**", "/test/**","/memberBlacklist");
    }
}
